﻿#pragma once
#include "ui_AddUser_admin.h"
#include "AllData.h"
#include "users.h"
#include "Global_Class.h"
#include <QDialog>
class AddUser_admin  : public QDialog
{
	Q_OBJECT

public:
	AddUser_admin(QWidget* parent);
	~AddUser_admin();
	users User();
	bool passwordsMatch();
	void setUsername(const QString& username);
	void setDisplayName(const QString& displayName);
	void setPassword(const QString& password);
	void setConfirmPassword(const QString& confirmPassword);
	void setPhone(const QString& phone);
	void setRole(const QString& role);
	void setIdCard(const QString& idCard);
	void EmptyWords();
	//-------------
	void setupUI();
	void setupPasswordToggle();
	void setupButtons();
	void setupValidation();
	void validatePassword();
//private:
	Ui::AddUser_admin* ui; // Assuming you have a UI file for AddUser_admin
};

